﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ModelXML
{
    [Serializable]
    public class AnimationInfo
    {
        public AnimationInfo(){}
        public String AnimationName;
        public List<AnimationClip> AnimationClips = new List<AnimationClip>();
    }

    [Serializable]
    public class AnimationClip : IComparable
    {
        public AnimationClip(){}
        public int time;
        public Transformation Transformation;
        public String BoneName;

        #region IComparable Members

        public int CompareTo(object obj)
        {
            if (obj == null)
                return 1;
            AnimationClip ac = obj as AnimationClip;
            if (ac == null) return 1;
            if (this.time > ac.time)
                return 1;
            else if (this.time == ac.time)
                return 0;
            else return -1;
        }

        #endregion
    }


}
